package com.lframework.xingyun.basedata.vo.product.unit;

import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class CalcCostVo implements BaseVo, Serializable {

    @NotBlank(message = "商品ID不能为空")
    @ApiModelProperty("商品ID")
    private String productId;

    @NotBlank(message = "单位ID不能为空")
    @ApiModelProperty("单位ID")
    private String unitId;

    @NotNull(message = "计算数量不能为空")
    @ApiModelProperty("计算数量")
    private BigDecimal num;
}
